# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=modscan
pkgver=0.1
pkgrel=6
groups=('blackarch' 'blackarch-scanner' 'blackarch-recon')
pkgdesc='A new tool designed to map a SCADA MODBUS TCP based network.'
arch=('any')
url='https://code.google.com/p/modscan/'
license=('GPL3')
depends=('python2' 'python2-ipy')
source=("$pkgname::https://dl.packetstormsecurity.net/UNIX/scanners/modscan.py.txt")
sha512sums=('7dafb9e7b601647dcc5e8fb7bdb322baf998a1955a2c0e5edbbdb5165778d9ec0776e2569c06e0b24349d854af123c3eb0d12d0ed4952fa8ea3a6ec30cdcab35')

prepare() {
  sed -i 's|/usr/bin/env python|/usr/bin/env python2|' $pkgname
}

package() {
  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
}

